<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>JSDoc: Class: template</title>
    
    <script src="scripts/prettify/prettify.js"> </script>
    <script src="scripts/prettify/lang-css.js"> </script>
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="styles/prettify-jsdoc.css">
    <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>

<body>

<div id="main">
    
    <h1 class="page-title">Class: template</h1>
    
    



<section>
    
<header>
    <h2>
        <span class="ancestors"><a href="jQuery.fn.html">.fn</a>.</span>
    
    template
    </h2>
    
</header>  

<article>
    <div class="container-overview">
    
    
    
        
<dt>
    <h4 class="name" id="template"><span class="type-signature"></span>new template<span class="signature">()</span><span class="type-signature"></span></h4>
    
    
</dt>
<dd>
    
    
    <div class="description">
        Execute a template commend given the templateName and a dictionary of
properties to bind to it.

Example: <br/>
	 <pre>
			var $div = $().template("clone", {
				"target":"shoppinglist-nav-item"
			});
			var $entityLink = that.privateMembers.entityLayoutController.getEntityLink(entity);
			$div.template("bind", {
				"_closeButton":function($element) {
					setTimeout(function() {
						$element.unbind("click");
						$element.bind("click", function() {
							Logger.debug("remove entity:" + entity.getGuid());
							shoppingList.removeEntity(entity.getGuid());
							that.publicMethods.saveShoppingList();
							that.publicMethods.displayShoppinglist();
						});
						
					},10);
				},
				"_navItemContent": $entityLink
			});
	 </pre>
    </div>
    

    
    
    
    
    
    
    
<dl class="details">
    
        
        <h5 class="subsection-title">Properties:</h5>
        
        <dl>

<table class="props">
    <thead>
	<tr>
		
		<th>Name</th>
		
		
		<th>Type</th>
		
		
		
		
		
		<th class="last">Description</th>
	</tr>
	</thead>
	
	<tbody>
	
	
        <tr>
            
                <td class="name"><code>command</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>
            
            
            
            
            
            <td class="description last">the command to execute. Valid values are: [ clone | bind ]</td>
        </tr>
	
	
	
        <tr>
            
                <td class="name"><code>data</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">Object</span>


            
            </td>
            
            
            
            
            
            <td class="description last">to bind to the template, or a dictionary of arguments, depending.</td>
        </tr>
	
	
	</tbody>
</table></dl>
        
    
        
	
	
	

	
	
	
	
	
	
	
	
	
	
	
	
	
	<dt class="tag-source">Source:</dt>
	<dd class="tag-source"><ul class="dummy"><li>jquery.template.js, line 51</li></ul></dd>
	
    
    
	
	
	
	
</dl>

    
    
    
    
    
    
    
    
</dd>

    
    </div>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
</article>

</section>  




</div>

<nav>
    <h2><a href="index.html">Index</a></h2><h3>Classes</h3><ul><li><a href="Assert.assertBuilder.html">assertBuilder</a></li><li><a href="jQuery.fn.html">fn</a></li><li><a href="jQuery.fn.template.html">template</a></li><li><a href="Types.html">Types</a></li><li><a href="Utilities.html">Utilities</a></li></ul><h3>Namespaces</h3><ul><li><a href="Assert.html">Assert</a></li><li><a href="Logger.html">Logger</a></li></ul>
</nav>

<br clear="both">

<footer>
    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3</a> on Tue May 14 2013 13:29:22 GMT-0700 (PDT)
</footer>

<script> prettyPrint(); </script>
</body>
</html>
